package com.spyx.cart.service;

import com.atyx.spyx.model.order.CartInfo;

import java.util.List;

public interface CartService {
    void addtoCart(Long skuid, Long skuNum, Long userId);

    void deleteByskuId(Long skuid, Long userId);

    void deleteByskuIds(Long userId, List<Long> skuids);

    void clearCart(Long userId);

    List<CartInfo> getCartList(Long userId);

    void checkCart(Long skuId, Long isChecked, Long userId);

    void checkAllCart(Long userId, Integer isChecked);

    void batchCheckCart(List<Long> skuIdList, Long userId, Integer isChecked);

    List<CartInfo> getCartCheckedList(Long userId);

    void deleteCart(Long userId);
}
